home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / comm / xeno / xeliza.lha / eliza.doc.original < prev    next >
Text File  |  1995-07-31  |  3KB  |  78 lines

  1.                    ELIZA  -  A Study of Natural Language
  2.  
  3. Eliza is a program designed to make natural language communication
  4. between Man and machine possible.
  5. Whether or not it successfully achieves this will be answered by the user.
  6. Eliza was originally written by Joseph Weizenbaum and described in his
  7. paper appearing in "The Communications of the Association of Computing
  8. Machinery" in 1966.
  9.  
  10. The appearance of Weizenbaum's paper prompted much discussion in computing
  11. circles. Many believed Weizenbaum had crossed a barrier into the understanding
  12. of human speech, others recognized eliza to be nothing more than a clever trick.
  13. Amusing anecdotes surfaced about people who had used eliza. Some people
  14. unknowingly used the program, believing their computer terminal to be connected
  15. to that of another employee - with humourous results!
  16. Weizenbaum added an option to the program which channeled people's
  17. responses to a large file, which Weizenbaum was able to later read and muse
  18. over. Weizenbaum's secretary, who claimed that she entered personal and
  19. confidential information to the program, demanded that he remove this option.
  20.  
  21. It is often claimed that to explain is to explain away - and nowhere is this
  22. maxim truer than in a program such as eliza. The user, initially bemused
  23. be eliza's apparent ability to "understand" speech, quickly moves it to
  24. the "I-could-have-done-that" basket. To help you with this transition,
  25. here is a brief description of eliza.
  26.  
  27. Eliza first prints a greeting message, and while this is being read by the
  28. user, reads from a large data file termed the 'script'. The script
  29. consists of two types of dictionaries - templates and keywords.
  30. Each template consists of a standardized sentence, followed by a number of
  31. optional responses.
  32.  
  33. For example :
  34.  
  35. ---snap---
  36. he is %
  37. *how long has he been %?
  38. *is your mother also %?
  39. *do you want to be % also?
  40. ---snap---
  41.  
  42. where the % symbol may match any number of words. For example
  43. "he is very dead" may draw the response "is your mother also very dead?".
  44.  
  45. If eliza is unable to match the user's input sentence with any of the standard
  46. sentences (templates), it attempts to match each word in the input sentence
  47. with a list of keywords. Each keyword has associated with it a number
  48. indicating the importance attached to finding that keyword in the input
  49. sentence. A typical keyword sequence may be :
  50.  
  51. ---snap---
  52. perhaps 4
  53. *you are being indecisive
  54. *you are still being indecisive. I warned you
  55. *you seem to lack self confidence
  56. ---snap---
  57.  
  58. If eliza fails to match both templates and keywords, it relies on what the
  59. user has previously typed - keeping a "history" of keywords and using
  60. these to prompt the conversation if it gets "bogged down".
  61.  
  62. All very simple really!
  63.  
  64. The implementation of eliza on display for Uniday in the Department of
  65. Computer Science is running on a Digital Corporation VAX-11/750 under the
  66. Unix version 4.2BSD operating system. It is written in the 'C' programming
  67. language and reads from a thirty six thousand character script, comprising
  68. eighty templates and two hundred and twenty keywords. By modifying the
  69. standard script and increasing the priority of keywords such as 'uniday',
  70. 'computer', 'america' and 'cup', eliza can be made to give the
  71. impression of "understanding" current events.
  72.  
  73. Any questions regarding eliza or the Department of Computer Science in
  74. general will be gratefully received.
  75.  
  76. Chris McDonald
  77.  
  78.